+2006-03-10 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkaboutdialog.c (gtk_show_about_dialog): Make the behaviour
+ of the about dialog consistent with other dialogs in gtk. If the
+ dialog is constructed with gtk_about_dialog_new(), the creator
+ is reponsible for handling the response by hiding or closing the
+ dialog. gtk_show_about_dialog() handles it by hiding the dialog.
+ (#333360, Daniel Drake)
+
+ * README.in: Mention this change.
+
2006-03-10 Matthias Clasen <mclasen@redhat.com>
Apply a patch from Dennis Cranston to make dialogs more
+2006-03-10 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkaboutdialog.c (gtk_show_about_dialog): Make the behaviour
+ of the about dialog consistent with other dialogs in gtk. If the
+ dialog is constructed with gtk_about_dialog_new(), the creator
+ is reponsible for handling the response by hiding or closing the
+ dialog. gtk_show_about_dialog() handles it by hiding the dialog.
+ (#333360, Daniel Drake)
+
+ * README.in: Mention this change.
+
2006-03-10 Matthias Clasen <mclasen@redhat.com>
Apply a patch from Dennis Cranston to make dialogs more
/* force defaults */
gtk_about_dialog_set_name (about, NULL);
gtk_about_dialog_set_logo (about, NULL);
-
- /* Close dialog on user response */
- g_signal_connect (about, "response", G_CALLBACK (close_cb), NULL);
}
static void
gtk_widget_show_all (dialog);
}
-static void
-close_cb (GtkAboutDialog *about)
-{
- GtkAboutDialogPrivate *priv = (GtkAboutDialogPrivate *)about->private_data;
-
- if (priv->license_dialog != NULL)
- {
- gtk_widget_destroy (priv->license_dialog);
- priv->license_dialog = NULL;
- }
-
- if (priv->credits_dialog != NULL)
- {
- gtk_widget_destroy (priv->credits_dialog);
- priv->credits_dialog = NULL;
- }
-
- gtk_widget_hide (GTK_WIDGET (about));
-
-}
-
/**
* gtk_about_dialog_new:
*
return old;
}
+static void
+close_cb (GtkAboutDialog *about)
+{
+ GtkAboutDialogPrivate *priv = (GtkAboutDialogPrivate *)about->private_data;
+
+ if (priv->license_dialog != NULL)
+ {
+ gtk_widget_destroy (priv->license_dialog);
+ priv->license_dialog = NULL;
+ }
+
+ if (priv->credits_dialog != NULL)
+ {
+ gtk_widget_destroy (priv->credits_dialog);
+ priv->credits_dialog = NULL;
+ }
+
+ gtk_widget_hide (GTK_WIDGET (about));
+
+}
+
/**
* gtk_show_about_dialog:
* @parent: transient parent, or %NULL for none
g_signal_connect (dialog, "delete_event", G_CALLBACK (gtk_widget_hide_on_delete), NULL);
+ /* Close dialog on user response */
+ g_signal_connect (dialog, "response", G_CALLBACK (close_cb), NULL);
+
va_start (var_args, first_property_name);
g_object_set_valist (G_OBJECT (dialog), first_property_name, var_args);
va_end (var_args);